home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python151_Src.lha / Python1.5_Source / Amiga / stubs.c < prev    next >
C/C++ Source or Header  |  1994-09-30  |  941b  |  46 lines

  1. RCS_ID_C = "$Id: stubs.c,v 4.1 1994/09/29 23:09:02 jraja Exp $";
  2. /*
  3.  *      stubs.c - common stubs for bsdsocket.library
  4.  *
  5.  *      Copyright © 1994 AmiTCP/IP Group, 
  6.  *                       Network Solutions Development Inc.
  7.  *                       All rights reserved.
  8.  */
  9.  
  10. #undef _OPTINLINE
  11. #include <proto/socket.h>
  12.  
  13. int 
  14. select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
  15.      struct timeval *timeout)
  16. {
  17.   /* call WaitSelect with NULL signal mask pointer */
  18.   return WaitSelect(nfds, readfds, writefds, exeptfds, timeout, NULL);
  19. }
  20.  
  21. char * 
  22. inet_ntoa(struct in_addr addr) 
  23. {
  24.   return Inet_NtoA(addr.s_addr);
  25. }
  26.  
  27. struct in_addr 
  28. inet_makeaddr(int net, int host)
  29. {
  30.   struct in_addr addr;
  31.   addr.s_addr = Inet_MakeAddr(net, host);
  32.   return addr;
  33. }
  34.  
  35. unsigned long 
  36. inet_lnaof(struct in_addr addr) 
  37. {
  38.   return Inet_LnaOf(addr.s_addr);
  39. }
  40.  
  41. unsigned long   
  42. inet_netof(struct in_addr addr)
  43. {
  44.   return Inet_NetOf(addr.s_addr);
  45. }
  46.